<html>
<head>
<meta http-equiv=Content-Type content=text/html;charset=utf-8>
<#include "/xadmin/inc/common.html">
<script language="JavaScript">
	function doSave(){
		var url = "<#if userid??>usermanage-updateuser?userid=${userid!0}<#else>usermanage-adduser</#if>";
		$('form').form('submit',{  
		    url:url,
		    onSubmit:function(){
			    if($('#userpassword').val()!=$('#passwd2').val()){
			    	window.top.$.messager.alert('提示','两次输入的密码不一致，请重新输入！');
			    	$('#userpassword').val('');
			    	$('#passwd2').val('');
			    	return false;
			    }
				return $(this).form('validate');
		    },  
		    success:function(data){  
				top.closemodalwindow(true,data);
		    }  
		});
	}
	//
	$(function(){
		$('#depid').combotree('setValue','${obj.depid!}');
		$('#oskey').combobox('setValue','${obj.oskey!}');
	})
</script>

</head>
<body>
<form method="post" name="flmxForm" id="flmxForm">
<table align=center border="0" width="90%" cellspacing="0" cellpadding="0" class="table_all">
      <tr><td colspan="2" class="td_title">&nbsp;个人信息</td></tr>
      <tr>
        <td width="30%" height="35" class="td_table_1" valign="middle"><span class="smallFont">用 户 名：<font color=red>*</font></span></td>
        <td width="70%" height="35" class="td_table_2"><div align="left">&nbsp;
        <input class="easyui-validatebox" type="text" required="true" id="username" name="username" maxlength="30" style="width:200px;" <#if userid??>readonly="readonly"</#if> value="${obj.username!}">
          </div></td>
      </tr>
      <tr>
        <td height="35"  class="td_table_1"><span class="smallFont">密&nbsp;&nbsp;&nbsp;码：<font color=red>*</font></span></td>
        <td height="35" class="td_table_2"><div align="left">&nbsp;
        	<input class="easyui-validatebox" required="true" id="userpassword" type="password" name="userpassword" maxlength="15" style="width:200px;" value="${obj.userpassword!}">
          </div></td>
      </tr>
      <tr>
        <td height="35"  class="td_table_1"><span class="smallFont">验证密码：<font color=red>*</font></span></td>
        <td height="35" class="td_table_2"><div align="left">&nbsp;
        	<input class="easyui-validatebox" required="true" id="passwd2" type="password" name="passwd2" maxlength="15" style="width:200px;" value="${obj.userpassword!}">
          </div></td>
      </tr>
      <tr>
        <td height="35" class="td_table_1"><span class="smallFont">真实姓名：</span></td>
        <td height="35" class="td_table_2"><div align="left">&nbsp;
        	<input class="easyui-validatebox" type="text" id="fullname" name="fullname" maxlength="10" style="width:200px;" value="${obj.fullname!}">
          </div></td>
      </tr>
    <tr>
      <td width="30%" height="35" class="td_table_1">电话号码：<font color=red>*</font></td>
      <td width="70%" height="35" class="td_table_2">&nbsp;
      	<input class="easyui-validatebox" type="text" required="true" id="tel" name="tel" maxlength="50" style="width:200px;" value="${obj.tel!}">
      </td>
    </tr>    
      <tr>
        <td height="35" class="td_table_1"><span class="smallFont">电子邮箱：</span></td>
        <td height="35" class="td_table_2"><div align="left">&nbsp;
        	<input class="easyui-validatebox" type="text" validType="email"   id="useremail" name="useremail" maxlength="50" style="width:200px;" value="${obj.useremail!}">
          </div></td>
      </tr>
      <tr>
        <td height="35" class="td_table_1"><span class="smallFont">所在部门：</span></td>
        <td height="35" class="td_table_2">&nbsp;
        	<input id="depid" class="easyui-combotree" name="depid" style="width:200px;" data-options="url:'deptmanage-listdeptfortree'" panelHeight="90"/>
      </tr>
      <tr>
        <td height="35" class="td_table_1">用户权限：<font color=red>*</font></td>
        <td height="35" class="td_table_2">&nbsp;
        	<input id="oskey" class="easyui-combobox" name="oskey" style="width:200px;" data-options="valueField:'jsdm',textField:'jsmc',url:'${request.contextPath}/xadmin/system/qxmanage-listrole'" panelHeight="90"/>
         </td>
      </tr>
  </table>
</form>
</body>
</html>